package cn.kgc.springbootdemo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * <h3>springbootdemo</h3>
 * <p>权限表单</p>
 *
 * @author : DongZeJian
 * @date : 2021-04-09 14:39
 **/
@ApiModel("权限表单")
@Data
public class PermissionsFprm implements Serializable {

    @ApiModelProperty("角色ID")
    @NotBlank(message = "角色ID不能为空")
    private Integer roleId;

    @ApiModelProperty("菜单ID集合")
    @NotEmpty(message = "菜单ID集合不能为空")
    private List<Integer> menuId;
}
